#include <iostream>
#include <string.h>
using namespace std;

int main()
{
    int N;
    cin >> N;
    string str;
    cin.ignore();
    for(int i = 0; i<N; i++)
    {
        getline(cin,str);
        if(str.find("ong,")==-1 || str.find("ong.") == -1)
        {
            cout<<"Skipped"<<endl;   
        }
        else
        {
            int pos = str.rfind(" ");
            pos = str.rfind(" ",pos-1);
            pos =str.rfind(" ",pos-1);
            string sstr = str.substr(0,pos+1)+"qiao ben zhong.";
            cout<<sstr<<endl;
        }
    }
}